all : rat

rat : main.cpp rational.o
	g++ -Wall main.cpp  rational.o -o rat

rational.o: rational.cpp rational.h
	g++ -Wall rational.cpp -c -o rational.o

clean :
	rm -f rat *.o